package com.yxdj.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yxdj.service.api.domain.SubCategory;

import java.util.List;

/**
* @author 韩总
* @description 针对表【sub_category(子分类表)】的数据库操作Service
* @createDate 2025-03-20 14:44:40
*/
public interface SubCategoryService extends IService<SubCategory> {

    /**
     * 分页及带条件的查询
     * @param subCategory
     * @return
     */
    List<SubCategory> getPageList(SubCategory subCategory);

    /**
     * 获取前几个子分类的方法
     * @param limit
     * @return
     */
    List<SubCategory> getSubCategoryList(Integer limit);
}
